<template>
    <div class="colleague">
        <div class="colleague-list" v-for="item in articleList" :key="item.articleId">
            <div class="colleague-list-left">
                <img :src="item.articlePicture" />
            </div>
            <div class="colleague-list-centent">
                <p>{{ item.articleName }}</p>
                <p>{{ item.articleTime }}</p>
            </div>
            <div class="colleague-list-right">
                <span  class="colleague-list-right-online">{{item.articleTypeName}}</span>
                
            </div>
        </div>
    </div>
</template>

<script>
import { selectHotAtricle } from '@/assets/api/utils.js'
export default {
    data() {
        return {
            articleList: [
            ]
        }
    },
    mounted() {
        this.hotArticleList();
    },
    methods: {
        hotArticleList() {
            selectHotAtricle().then((resp) => {
                if (resp.code == 200) {
                    this.articleList = resp.data
                }
            })
        }
    }
}
</script>

<style scoped>
.colleague {
    width: 100%;
    max-height: 355px;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    overflow: '-moz-scrollbars-none';
    scrollbar-width: none;
    /*  火狐   */
}

.colleague::-webkit-scrollbar {
    display: none;
    /*  Chrome  */
    width: 0 !important;
    /*  Chrome  */
}

.colleague .colleague-list:nth-last-child(1) {
    border-color: transparent;
}

.colleague-list {
    width: 100%;
    height: 71px;
    border-bottom: 1px solid #dcdfe6;
    padding: 10px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.colleague-list:hover {
    background: #DBFEFB;
}

.colleague-list-left,
.colleague-list-left img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
}

.colleague-list-centent {
    flex: 1;
    padding-left: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-around;

}

.colleague-list-centent p:nth-child(1) {
    font-size: 14px;
    font-weight: bold;
}

.colleague-list-centent p:nth-child(2) {
    font-size: 12px;
    color: #999999;
}

.colleague-list-right {
    width: 100px;
    height: 50px;
    padding-top: 13px;
    display: flex;
    justify-content: flex-end;
}

.colleague-list-right span {
    display: inline-block;
    width: 52px;
    height: 24px;
    text-align: center;
    line-height: 26px;
    border-radius: 2px;
    border: 1px solid;
    font-size: 12px;
}

.colleague-list-right-online {
    border-color: #0D9AFF;
    color: #0D9AFF;
    background: #DEEFFB;
}

.colleague-list-right-outline {
    border-color: #FD41F0;
    color: #FD41F0;
    background: #FEEDFD;
}</style>